/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package demo924;


import java.util.Scanner;

public class RandomDemo1 {

    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        int x;
        int y;
        int z;
        char c = '▲';
        
        
            StringBuffer sbx = new StringBuffer();
            x = (int) (Math.random() * 10) + 1;
            y = (int) (Math.random() * 10) + 1;
            for (int i = 0; i < x; i++) {
                sbx.append(c);
            }


            sbx.append("    ");
            for (int i = 0; i < y; i++) {
                sbx.append(c);
            }

            System.out.println(sbx + "=?");
            z = sc.nextInt();
            if (z == x + y) {
                System.out.println("correct");
            } else {
                System.out.println("Sorry, incorrect");
            }
        
    }
}
